import request from '@/utils/request'

/**
 * 添加
 * @param param
 */
export function add(param) {
  return request({
    url: '/resource/save',
    method: 'post',
    data: param
  })
}

/**
 * 更新
 * @param param
 */
export function update(param) {
  return request({
    url: '/resource/update',
    method: 'put',
    data: param
  })
}

/**
 * 展示
 * @param param
 */
export function list(param) {
  return request({
    url: '/resource/selectPage',
    method: 'post',
    data: param
  })
}

/**
 * 根据id批量删除
 * @param param
 */
export function deleteBatchIds(param) {
  return request({
    url: '/resource/deleteBatchIds',
    method: 'delete',
    data: param
  })
}
